﻿using EasyCore.Domain.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Domain.Entities.Systems
{
    /// <summary>
    /// 用于角色
    /// </summary>
    [SugarTable("sys_user_role")]
    public class SysUserRole:AuditedEntity
    {
        /// <summary>
        /// 唯一标识
        /// </summary>
        [SugarColumn(IsIdentity = true,IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 用户唯一标识
        /// </summary>
        [SugarColumn(ColumnDescription ="用户唯一标识",IsNullable = false)]
        public long UserId { get; set; }

        /// <summary>
        /// 角色唯一标识
        /// </summary>
        [SugarColumn(ColumnDescription = "角色唯一标识", IsNullable = false)]
        public long RoleId { get; set; }
    }
}
